<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head lang="en">
    <meta charset="UTF-8">
    <title>添加就诊人</title>
    <base th:href="@{http://localhost:9090/}"/>
    <link rel="stylesheet" th:href="@{/bootstrap/css/bootstrap.min.css}" />
    <script type="text/javascript" th:src="@{/js/jquery-3.2.1.min.js}"></script>
    <script type="text/javascript" th:src="@{/bootstrap/js/bootstrap.min.js}" ></script>
    <script type="text/javascript">
        $(function (){
            var time = "[[${time}]]";
            $.ajax({
                url: "/dmy/booking",
                type: "GET",
                data: "workforcesTime="+time,
                dataType: "json",
            })
            $("#back").click(function (){
                window.history.back(-1);
            });
            $("#add").click(function (){

            })
            $("#time").attr("text",'"' + time + '"');

        })
    </script>
</head>
<body>
    <div>
        <h1>添加就诊人信息</h1>
        <form th:action="@{/dmy/userMain}">
            <!--隐藏id-->
            <input id="path" th:type="hidden" value="">
            <p>
                姓名:<input th:type="text" name="bname">
            </p>
            <p>性别:
                <input th:type="radio" name="bgender" checked="checked"/>男
                <input th:type="radio" name="bgender" checked="checked"/>女
            </p>
            <p>
                年龄:<input th:type="number" name="bage">
            </p>
            <p>
                身份证号:<input th:type="text" name="bcar">
            </p>
            <p>电话:
                <input th:type="text" name="bphone">
            </p>
            <p>预约时间:
                <input th:type="date" name="workforcesTime" id="time" disabled="true">
            </p>
            <button th:type="reset">重置</button>
            <button id="back" th:type="back">返回</button>
            <button id="add" th:type="submit">添加</button>
        </form>
    </div>
</body>
</html>